<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TurtleDB: ca.uqac.dim.turtledb.Selection Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TurtleDB
   
   </div>
   <div id="projectbrief">A mini distributed database system</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">ca.uqac.dim.turtledb.Selection Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="ca::uqac::dim::turtledb::Selection" --><!-- doxytag: inherits="ca::uqac::dim::turtledb::UnaryRelation" --><div class="dynheader">
Inheritance diagram for ca.uqac.dim.turtledb.Selection:</div>
<div class="dyncontent">
<div class="center"><img src="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection__inherit__graph.png" border="0" usemap="#ca_8uqac_8dim_8turtledb_8_selection_inherit__map" alt="Inheritance graph"/></div>
<map name="ca_8uqac_8dim_8turtledb_8_selection_inherit__map" id="ca_8uqac_8dim_8turtledb_8_selection_inherit__map">
<area shape="rect" id="node2" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html" title="ca.uqac.dim.turtledb.UnaryRelation" alt="" coords="5,80,232,107"/><area shape="rect" id="node3" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html" title="ca.uqac.dim.turtledb.Relation" alt="" coords="23,5,215,32"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ca.uqac.dim.turtledb.Selection:</div>
<div class="dyncontent">
<div class="center"><img src="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection__coll__graph.png" border="0" usemap="#ca_8uqac_8dim_8turtledb_8_selection_coll__map" alt="Collaboration graph"/></div>
<map name="ca_8uqac_8dim_8turtledb_8_selection_coll__map" id="ca_8uqac_8dim_8turtledb_8_selection_coll__map">
<area shape="rect" id="node2" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html" title="ca.uqac.dim.turtledb.UnaryRelation" alt="" coords="5,101,232,131"/><area shape="rect" id="node4" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html" title="ca.uqac.dim.turtledb.Relation" alt="" coords="23,5,215,35"/><area shape="rect" id="node7" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html" title="ca.uqac.dim.turtledb.Condition" alt="" coords="256,101,453,131"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection_1_1_selection_cache_iterator.html">SelectionCacheIterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection_1_1_selection_stream_iterator.html">SelectionStreamIterator</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#ab8ff65d84a17a1af7fd4b9870219069b">Selection</a> (<a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html">Condition</a> c, <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html">Relation</a> r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_schema.html">Schema</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#aa626189956da84841dc8e2a0ea09b965">getSchema</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#abc1e83693e0549ac21316da3465a2bc4">setCondition</a> (<a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html">Condition</a> c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#aed8c10cdd9d8a2cfea98645d9658ff55">accept</a> (<a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_query_visitor.html">QueryVisitor</a> v)  throws EmptyQueryVisitor.VisitorException   </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_stream_iterator.html">RelationStreamIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#a381bbacfd2b9698c8788309ae5563295">streamIterator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_iterator.html">RelationIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#acb458f48b8dd24d4e84b2da4ff4b457a">cacheIterator</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html">Condition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#acef83632b85933c9907b92110662ae0a">m_condition</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_selection_8java_source.html#l00020">20</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab8ff65d84a17a1af7fd4b9870219069b"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::Selection" ref="ab8ff65d84a17a1af7fd4b9870219069b" args="(Condition c, Relation r)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#ab8ff65d84a17a1af7fd4b9870219069b">ca.uqac.dim.turtledb.Selection.Selection</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html">Condition</a>&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html">Relation</a>&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00024">24</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aed8c10cdd9d8a2cfea98645d9658ff55"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::accept" ref="aed8c10cdd9d8a2cfea98645d9658ff55" args="(QueryVisitor v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#aed8c10cdd9d8a2cfea98645d9658ff55">ca.uqac.dim.turtledb.Selection.accept</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_query_visitor.html">QueryVisitor</a>&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td>  throws EmptyQueryVisitor.VisitorException   <code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#adb708409ab8c4a428ed102c4ce850ffe">ca.uqac.dim.turtledb.Relation</a>.</p>

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00046">46</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<a class="anchor" id="acb458f48b8dd24d4e84b2da4ff4b457a"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::cacheIterator" ref="acb458f48b8dd24d4e84b2da4ff4b457a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_iterator.html">RelationIterator</a> <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#acb458f48b8dd24d4e84b2da4ff4b457a">ca.uqac.dim.turtledb.Selection.cacheIterator</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns an iterator over tuples of the relation </p>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>

<p>Implements <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#a2ea66dc69ae6dc86627aed815ebd40b6">ca.uqac.dim.turtledb.Relation</a>.</p>

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00098">98</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<a class="anchor" id="aa626189956da84841dc8e2a0ea09b965"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::getSchema" ref="aa626189956da84841dc8e2a0ea09b965" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_schema.html">Schema</a> <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#aa626189956da84841dc8e2a0ea09b965">ca.uqac.dim.turtledb.Selection.getSchema</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the relation's schema </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The schema </dd></dl>

<p>Implements <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#a7a7af53642133603e51e04d79f938286">ca.uqac.dim.turtledb.Relation</a>.</p>

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00032">32</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<a class="anchor" id="abc1e83693e0549ac21316da3465a2bc4"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::setCondition" ref="abc1e83693e0549ac21316da3465a2bc4" args="(Condition c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#abc1e83693e0549ac21316da3465a2bc4">ca.uqac.dim.turtledb.Selection.setCondition</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html">Condition</a>&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00039">39</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<a class="anchor" id="a381bbacfd2b9698c8788309ae5563295"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::streamIterator" ref="a381bbacfd2b9698c8788309ae5563295" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_stream_iterator.html">RelationStreamIterator</a> <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#a381bbacfd2b9698c8788309ae5563295">ca.uqac.dim.turtledb.Selection.streamIterator</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns an iterator over tuples of the relation </p>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>

<p>Implements <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#ae5ed6d099a1c47cc0aa0026f9b5a4431">ca.uqac.dim.turtledb.Relation</a>.</p>

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00092">92</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="acef83632b85933c9907b92110662ae0a"></a><!-- doxytag: member="ca::uqac::dim::turtledb::Selection::m_condition" ref="acef83632b85933c9907b92110662ae0a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_condition.html">Condition</a> <a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html#acef83632b85933c9907b92110662ae0a">ca.uqac.dim.turtledb.Selection.m_condition</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_selection_8java_source.html#l00022">22</a> of file <a class="el" href="_selection_8java_source.html">Selection.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/ca/uqac/dim/turtledb/<a class="el" href="_selection_8java_source.html">Selection.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceca.html">ca</a>      </li>
      <li class="navelem"><a class="el" href="namespaceca_1_1uqac.html">uqac</a>      </li>
      <li class="navelem"><a class="el" href="namespaceca_1_1uqac_1_1dim.html">dim</a>      </li>
      <li class="navelem"><a class="el" href="namespaceca_1_1uqac_1_1dim_1_1turtledb.html">turtledb</a>      </li>
      <li class="navelem"><a class="el" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_selection.html">Selection</a>      </li>

    <li class="footer">Generated on Fri Dec 7 2012 18:55:40 for TurtleDB by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
